<?php



namespace App\Services\Business\Proxies;

use App\Constant\CacheConstant;
use App\Services\Business\Interfaces\ConquerServiceInterface;
use App\Zesow\ServiceProxy\ServiceProxy;
use App\Zesow\ServiceProxy\Cache\CacheInfo;
use App\Services\Business\Services\ConquerService;

class ConquerServiceProxy extends ServiceProxy implements ConquerServiceInterface
{
    public function __construct(ConquerService $service)
    {
        parent::__construct($service);
        $this->cache['getRecommendConquer'] = function () {
            return new CacheInfo(
                CacheConstant::CONQUER_SERVICE_RECOMMEND['name'],
                $this->configService->getCacheExpire()
            );
        };
    }
}
